<template>
  <div class="dashboard-container">
    <div class="dashboard-text">你好{{ name }}, 欢迎登录xxx系统</div>
    <!--    <div class="dashboard-text">roles: <span v-for="role in roles">{{ role }}</span></div>-->
    <el-image
      src="/img/home.gif"
      fit="contain"
    />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
    text-align: center;
  }
  &-text {
    font-size: 60px;
  }
}
</style>
